import 'package:enterprise_v6_app/generated/json/base/json_convert_content.dart';
import 'package:enterprise_v6_app/app/data/entities/application/standardiztion/standard_home_scence_health_entity.dart';

StandardHomeScenceHealthEntity $StandardHomeScenceHealthEntityFromJson(Map<String, dynamic> json) {
  final StandardHomeScenceHealthEntity standardHomeScenceHealthEntity = StandardHomeScenceHealthEntity();
  final String? ocd = jsonConvert.convert<String>(json['ocd']);
  if (ocd != null) {
    standardHomeScenceHealthEntity.ocd = ocd;
  }
  final String? oha = jsonConvert.convert<String>(json['oha']);
  if (oha != null) {
    standardHomeScenceHealthEntity.oha = oha;
  }
  final String? oht = jsonConvert.convert<String>(json['oht']);
  if (oht != null) {
    standardHomeScenceHealthEntity.oht = oht;
  }
  final String? onf = jsonConvert.convert<String>(json['onf']);
  if (onf != null) {
    standardHomeScenceHealthEntity.onf = onf;
  }
  final String? th = jsonConvert.convert<String>(json['th']);
  if (th != null) {
    standardHomeScenceHealthEntity.th = th;
  }
  return standardHomeScenceHealthEntity;
}

Map<String, dynamic> $StandardHomeScenceHealthEntityToJson(StandardHomeScenceHealthEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['ocd'] = entity.ocd;
  data['oha'] = entity.oha;
  data['oht'] = entity.oht;
  data['onf'] = entity.onf;
  data['th'] = entity.th;
  return data;
}

extension StandardHomeScenceHealthEntityExtension on StandardHomeScenceHealthEntity {
  StandardHomeScenceHealthEntity copyWith({
    String? ocd,
    String? oha,
    String? oht,
    String? onf,
    String? th,
  }) {
    return StandardHomeScenceHealthEntity()
      ..ocd = ocd ?? this.ocd
      ..oha = oha ?? this.oha
      ..oht = oht ?? this.oht
      ..onf = onf ?? this.onf
      ..th = th ?? this.th;
  }
}
